package com.hoo.entity;

import java.io.Serializable;

public class Customer implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7190587100448638587L;
	// private static final long serialVersionUID = -5182532647273106745L;
	/**
	 * <p>
	 * ClassName: Customer
	 * <p>
	 * <p>
	 * Description: Customer实现了Serializable接口，可以被序列化
	 * <p>
	 * 
	 * @author xudp
	 * @version 1.0 V
	 * @createTime 2014-6-9 下午04:20:17
	 */
	// Customer类中没有定义serialVersionUID
	private String name;
	private int age;
	// 新添加的sex属性
	private String sex;
	private String bdx;

	public Customer(String name, int age) {
		this.name = name;
		this.age = age;
	}

	public Customer(String name, int age, String sex) {
		this.name = name;
		this.age = age;
		this.sex = sex;
	}

	public Customer(String name, int age, String sex, String bdx) {
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.bdx = bdx;
	}

	/*
	 * @MethodName toString
	 * 
	 * @Description 重写Object类的toString()方法
	 * 
	 * @author xudp
	 * 
	 * @return string
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "name=" + name + ", age=" + age + ",sex=" + sex + ",bdx=" + bdx;
	}
}
